
export default {

  namespace: 'righttool',

  state: {
    data:[
    {
      title:'标题一标题一标题一标题一题一标题一题一标题一',
      img:'./images/wulo5ingalb.jpg',
      key:'title_0',
      filters:true,
      show:true,
      width:200,
      style:{color:'#5F9FF7'},
      children:[
      {
        title:'子标题1子标题1子标题1子标题1子标题1子标题1子标题1子标题1',
        icon:'icon-wr',
        key:'title_01',
        checked:false
      },
      {
        title:'子标题2',
        img:'./images/wulo5ingalb.jpg',
        key:'title_02',
        checked:false
      }
      ]
    },{
      title:'标题二（单选）',
      icon:'icon-sabuche',
      key:'title_1',
      filters:true,
      show:true,
      brandchShow:false,
      haveEvent:true,
      children:[
      {
        title:'子标题1',
        icon:'icon-wr',
        key:'title_11',
        checked:false,
        style:{color:'#5F9FF7'}
      },
      {
        title:'子标题2',
        icon:'icon-wr',
        key:'title_12',
        checked:false
      }
      ]
    },
    {
      title:'标题三（多选）',
      icon:'icon-hedao',
      key:"title_2",
      filters:true,
      show:true,
      brandchShow:false,
      haveEvent:true,
      multiple:true,
      children:[
      {
        title:'子标题1',
        icon:'icon-wr',
        key:'title_21',
        checked:false
      },
      {
        title:'子标题2',
        img:'./images/wulo5ingalb.jpg',
        key:'title_22',
        checked:false
      }
      ]
    },
    {
      title:'标题四（无子列表)',
      /*show:false,*/
      key:"title_3"
    }
    ]
  },

  subscriptions: {
    setup({ dispatch, history }) {
    },
  },

  effects: {
    *fetchRemote({ payload }, { call, put }) {
    },
  },

  reducers: {
    fetch(state, action) {
      console.log(...state)
      return { ...state, ...action.payload };
    },
  },

}
